package com.example.dryclean_admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author lijiaxin
 * @since 2023-12-27
 */
@Data
public class Orderlist implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 操作人用户名
     */
    private String operater;

    /**
     * 类别
     */
    private String style;

    /**
     * 数量
     */
    private Integer count;

    private LocalDateTime createtime;

    /**
     * 订单备注
     */
    private String note;

    /**
     * 订单状态
     */
    private String state;

    /**
     * 洗涤剂 ID
     */
    private Integer detergentId;

    /**
     * 进度阶段 ID
     */
    private Integer stageId;

    /**
     * 当前阶段开始时间
     */
    private LocalDateTime startTime;

    /**
     * 用来存储orderLogs
     */
    @TableField(exist = false)
    private List<Orderlog> orderlogs = new ArrayList<>();
    @TableField(exist = false)
    private String detergentName;

}
